package cn.lg.soar.common.model.base;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * 树形数据DTO
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@ApiModel(value = "树形数据DTO", description = "树形数据DTO")
@Getter
@Setter
public abstract class TreeDTO extends BaseDTO {

    @ApiModelProperty(value = "父id")
    protected Long parentId;

    @JsonProperty(access = JsonProperty.Access.READ_ONLY)
    @ApiModelProperty(value = "祖先id链路")
    protected String ancestorLink;

    @ApiModelProperty(value = "排序")
    protected Integer sort;

}
